﻿using Md.Api.Model.Manage.SysDictType.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.SysDictType;
/// <summary>
/// 通过字典编号获取字典类型服务
/// </summary>
public class GetSysDictTypeByDictIdService : ApiBase<RequestGetSysDictTypeByDictIdModel>
{
    /// <summary>
    /// 系统字典类型仓储
    /// </summary>
    public SysDictTypeRep sysDictTypeRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = sysDictTypeRep.GetSysDictTypeByDictId(Parameter.DictId);

        Result.Data = res;
    }
}
